package edu.scnu.fans.fingertip.user.input;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginRegisterInput {

    @NotBlank(message = "用户名为空")
    @Size(min = 6, max = 20, message = "长度为6~20字符")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "长度为6~20字符")
    private String password;
}
